import { axios } from '@/utils/request'

//首页接口-平台用户-注册用户
export function getPtyhZcNum() {
  return axios({
    url: '/business/homepage/registerUser',
    method: 'put',
  })
}
//首页接口-平台用户-日均在线用户
export function getPtyhRjzxNum() {
  return axios({
    url: '/business/homepage/userAveOnLine',
    method: 'put',
  })
}
//首页接口-平台用户-日均平台访问量
export function getPtyhRjptfwNum() {
  return axios({
    url: '/business/homepage/userAveVisits',
    method: 'put',
  })
}
//首页接口-平台用户-平台访问量
export function getPtyhPtfwNum() {
  return axios({
    url: '/business/homepage/userVisits',
    method: 'put',
  })
}
//首页接口-总体情况
export function getTotalTypeNum() {
  return axios({
    url: 'business/homepage/totalTypeNum',
    method: 'put'
  })
}
//首页接口-根据企业查询
export function totalDataByQy(data) {
  return axios({
    url: 'business/homepage/totalDataByQy',
    params:data,
    method: 'put'
  })
}//首页接口-根据代征主体
export function totalDataByZt(data) {
  return axios({
    params:data,
    url: 'business/homepage/totalDataByZt',
    method: 'put'
  })
}
//首页接口-数据更新趋势-根据资源目录分类统计数据增量(图2)
export function getDataAddByZyml(data) {
  return axios({
    url: '/business/homepage/resourceDataAddByType',
    method: 'put',
    params:data
  })
}
//首页接口-数据总量
export function getDataAllCount() {
  return axios({
    url: '/business/homepage/totalNum',
    method: 'put',
  })
}
//首页接口-根据一级分类统计数据量
export function getFirstLevelData() {
  return axios({
    url: '/business/homepage/selectTypeOneNum',
    method: 'put',
  })
}
//首页接口-根据二级分类统计数据量
export function getSecondLevelData(data) {
  return axios({
    url: '/business/homepage/selectTypeTwoNum',
    method: 'put',
    params:data
  })
}